﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Smart.Data.BaseClasses
{
    public class BaseDataAccess
    {
        private ISmartEntities context;

        protected ISmartEntities Context
        {
            get
            {
                if (context == null)
                    context = new SmartEntities();

                return context;
            }
            set
            {
                if (context == null && value != null)
                {
                    context = value;
                }
            }
        }
    }
}
